//
//  LBIndexPathTableField.h
//  Auction
//
//  Created by Gary on 15/10/17.
//  Copyright © 2015年 Lebo. All rights reserved.
//

#import "LBIndexPathTable.h"
#import "LBIndexPathSet.h"

/**
 *  字段项信息，一般用于类似UITableViewCell中
 *  形式类似于左边标题Label，右边UITextField，UITextView，UIPickerView等输入型控件
 */
@interface LBIndexPathTableField : LBIndexPathTable

@property (retain, nonatomic) UIView           *titleView;//左边标题控件
@property (retain, nonatomic) UIView           *valueView;//右边输入控件

@property (assign, nonatomic) BOOL             required;//字段值是否必填;
@property (strong, nonatomic) NSString         *title;//左边标题控件的文字内容
@property (strong, nonatomic) NSString         *name;//字段项的名称，一般是和title相同
@property (strong, nonatomic) NSString         *text;//右边输入控件的文字内容
@property (strong, nonatomic) NSString         *value;//右边输入控件的值内容，一般用来记录数字、索引等
@property (strong, nonatomic) NSString         *inputRegex;//右边输入控件每个输入字符的正则表达式
@property (strong, nonatomic) NSString         *textRegex;//右边输入控件最终文字内容的正则表达式
@property (strong, nonatomic) NSString         *textRegexDescription;//右边输入控件最终文字内容的正则表达式的描述，用于出错时的提示
@property (assign, nonatomic) NSUInteger       minLength;//右边输入控件最终文字内容的最小长度
@property (assign, nonatomic) NSUInteger       maxLength;//右边输入控件最终文字内容的最大长度
@property (strong, nonatomic) NSString         *paramKey;

@end

@interface LBIndexPathSet (LBIndexPathTableField)

- (LBIndexPathTableField *)indePathObjectWithValueView:(UIView *)valueView;

@end